# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-stochastic
_pkgorig=stochastic
pkgver=0.6.0
pkgrel=1
pkgdesc="Generate realizations of stochastic processes in python"
url="https://github.com/crflynn/stochastic"
arch="noarch"
license="MIT"
depends="python3 py3-numpy py3-scipy"
makedepends="py3-build py3-setuptools poetry py3-installer"
checkdepends="py3-pytest py3-pytest-xdist py3-pytest-cov"
source="https://github.com/crflynn/stochastic/archive/$pkgver/$_pkgorig-$pkgver.tar.gz
	do-not-package-license-changelog.patch"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	GIT_DIR=. python3 -m build --wheel --no-isolation --skip-dependency-check
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/stochastic-$pkgver-py3-none-any.whl
}

sha512sums="
f9eaeedb5e9caa1c623f3e50fbcbbbd094a124864e2461fa4ad05a8289128a1586a954bee3e7ed382c17c8617a11f2c4a96e60aa3629e8560462282025aea6fa  stochastic-0.6.0.tar.gz
3249f66725f46451aaaa0108270ac775f5f5e04f10238faa91392d42b6fb47c1c5cfaacf7ae65b9d018431987e9937e68f40870172f60290652c5912220fcc03  do-not-package-license-changelog.patch
"
